package com.example.dubbo.demo.server.modules.message.servive.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.dubbo.demo.server.modules.message.entity.MessageEntity;
import com.example.dubbo.demo.server.modules.message.mapper.MessageMapper;
import com.example.dubbo.demo.server.modules.message.service.MessageService;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author dzii
 * @since 2022-03-19
 */
@DubboService
public class MessageServiceImpl extends ServiceImpl<MessageMapper, MessageEntity> implements MessageService {

    @Override
    public boolean save(String message) {
        MessageEntity messageEntity = new MessageEntity();
        messageEntity.setContent(message);
        return save(messageEntity);
    }
    
}
